<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Layer filtering TOC view</title>
  <style>
    table, th, td {
      border: 1px solid black;
      border-collapse: collapse;
    }
    th, td {
      padding: 5px;
    }
    th {
      font-weight: bold;
    }
  </style>
</head>
<body>
  ## Layer filtering TOC view

This sample shows an implementation of a custom table of contents (TOC) view that shows a tree view with map layers filtered by the layer type specified in a combo box. This sample also shows how to bring up an appropriate context menu when the data frame or layer tree node is right-clicked in the custom TOC.  

```
Language:              C#, VB
Subject:               Framework
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5
```

### Resources

* [ArcObjects .NET API Reference online](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm)  
* [Sample Data Download](../../releases)  
* [What's new](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#91cabc68-2271-400a-8ff9-c7fb25108546.htm)  
* [Download the ArcObjects SDK for .Net from MyEsri.com](https://my.esri.com/)  

### Usage
1. Start Visual Studio, open the solution, and compile the project.  
1. Right-click the output .dll and register it.  
1. Start ArcMap and open a map.  
1. Select Layer Types (VB .NET) or Layer Types (C#) in the TOC.  
1. Select a layer type from the combo box to filter the layers in the TOC.  
1. Right-click a data frame node to show a context menu, which is the default.  
1. Right-click a layer node to show a simplified context menu containing the layer zoom in, open table, save to layer, and properties commands.  

---------------------------------

#### Licensing  
<table><tr><th> Development licensing </th><th> Deployment licensing </th></tr>
<tr><td> ArcGIS Desktop Basic </td><td> ArcGIS Desktop Basic </td></tr>  
<tr><td> ArcGIS Desktop Standard </td><td> ArcGIS Desktop Standard </td></tr>  
<tr><td> ArcGIS Desktop Advanced </td><td> ArcGIS Desktop Advanced </td></tr>  
</table>
</body>
</html>